package mysgoog.pattern.dragon;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import mysgoog.gtp.Color;
import mysgoog.gtp.Vertex;
import mysgoog.pattern.Storage.VertexList;
import mysgoog.pattern.Storage.VertexValue;

public class ConnPatternTest {
	static Color O = Color.WHITE;
	static Color X = Color.BLACK;
	static Color U = Color.EMPTY;
	static Color[] board = {
			U, U, U, U, U, U, U, U, U, U, U, U, U,
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, O, U, U, O, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U, 
			U, U, U, U, U, U, U, U, U, U, U, U, U 
	};
	public static void main(String[] arg) throws IOException, ClassNotFoundException{
		System.out.println("Loading");
		ConnPatternMatcher matcher = new ConnPatternMatcher();
		List<VertexList> moves = new ArrayList<VertexList>();
		System.out.println("Matching");
		//matcher.getMatch(board, O, moves);
		for (VertexList i:moves){
			System.out.println(i.type);
			for (Vertex v:i.list){
				System.out.print(v.x + " " + v.y + " ");
			}
			System.out.println();
		}
	}
}
 